<?php
namespace App\Api\Web\Models;

use Illuminate\Database\Eloquent\Model;

class House extends Model
{
    protected $table = 'house';

    protected $fillable = [
        'id', 'role', 'photos', 'rent_out', 'community_id', 'bedroom_count', 'toilet_count', 'toward', 'facilities',
        'area', 'current_floor', 'all_floor', 'description', 'payment_account', 'total', 'mobile', 'wechat', 'qq', 'user_id',
        'name',
        'city',
        'city_id',
        'contract',
        'expiration_date',
        'is_has_free',
        'is_check',
        'toilet_type',
        'bedroom_type',
        'bedroom_area',
        'sex_limit',
        'partner_description',
        'heating_free',
        'deposit',
        'main_img',
        'sitroom_count',
        'stay_date',
        'status',
        'is_social',
        'pv',
        'comment_count',
        'collect_count',
        'order',
        'ding_start_at',
        'ding_end_at',
    ];

    static $status = [
        '-900' => '用户删除',
        '-100' => '审核不通过',
        '100' => '待审核',
        '150' => '下架',
        '200' => '审核通过',
    ];

    static $role = [
        '1' => '房东直租',
        '2' => '合租房源',
        '3' => '转租房源',
        '4' => '品牌公寓',
    ];


    static $rent_out = [
        '1' => '整租',
        '2' => '合租',
        '3' => '床位',
    ];

    static $toward = [
        '1' => '东',
        '2' => '南',
        '3' => '西',
        '4' => '北',
    ];

    static $facilities = [
        '1' => '齐全',
        '2' => '缺部分',
        '3' => '空房',
    ];

    static $payment_account = [
        '1' => '月付',
        '2' => '季付',
        '3' => '半年付',
        '4' => '年付',
    ];

    static $contract = [
        '1' => '房东本人',
        '2' => '房东委托人',
        '3' => '公寓直属运营方',
        '4' => '发布者',
        '5' => '室友',
        '6' => 'HOUSE直租平台',
        '7' => '其他（非中介）',
    ];

    static $is_has_free = [
        '1' => '是',
        '0' => '否',
    ];

    static $is_check = [
        '1' => '是',
        '0' => '否',
    ];

    static $toilet_type = [
        '1' => '独卫',
        '2' => '公卫',
    ];

    static $bedroom_type = [
        '1' => '主卧',
        '2' => '次卧',
        '3' => '隔断',
    ];

    static $sex_limit = [
        '1' => '不限',
        '2' => '限男生',
        '3' => '限女生',
    ];


}